:root {
	--totalWid: 100%;
	--themeColor: #00bdff;
}

html,
body {
	width: var(--totalWid);
}

/* 头部占位符 */
#header {
	width: var(--totalWid);
	height: 65px;
}
/* 头部 */
header {
	z-index: 40;
	top: 0;
	left: 0;
	width: var(--totalWid);
	height: 65px;
	/* background-color: chartreuse; */
	border-bottom: 1px solid #aec7ec;
}
/* 左边logo */
header > a {
	display: block;
	width: 150px;
	height: 65px;
	padding-left: 20px;
}
header > a h1 {
	height: 35px;
	background: url(../imgs/new-logo-white2.png) no-repeat;
}
/* 中间导航栏 */
header ul li {
	margin: 10px;
}
header ul li a {
	color: #777878;
}
header ul li:nth-child(2) a {
	color: var(--themeColor);
	border-bottom: 2px solid var(--themeColor);
	padding-bottom: 21px;
}
header ul li a:hover {
	color: var(--themeColor);
	border-bottom: 2px solid var(--themeColor);
	padding-bottom: 21px;
}
/* 右边按钮 */
header div button {
	color: #666666;
	padding: 5px 10px 5px 10px;
	background-color: transparent;
	border: 1px solid #d1d1d1;
	border-radius: 20px;
	margin-right: 10px;
}
header div button:hover {
	color: #fff;
	background-color: #ed510a;
	border: 1px solid #fff;
}

/* 主题 */
/* API分类区 */
main {
	width: var(--totalWid);
	/* height: 2000px; */
}
#apiList {
	box-sizing: border-box;
	padding-top: 50px;
}
#apiList h2 {
	margin-bottom: 25px;
	font-size: 25px;
}
#apiList ul {
	display: flex;
	flex-wrap: wrap;
}
#apiList ul li {
	box-sizing: border-box;
	padding: 5px 15px;
	margin-right: 15px;
	margin-bottom: 15px;
	border: 1px solid #666666;
	border-radius: 10px;
	color: #666666;
}
#apiList ul li.active {
	border: 1px solid var(--themeColor);
	color: var(--themeColor);
}
#apiList ul li:hover {
	cursor: pointer;
	background-color: var(--themeColor);
	color: #fff;
}
#apiList .input {
	margin-top: 50px;
}
#apiList .input strong {
	margin-right: 25px;
}
#apiList .input input {
	box-sizing: border-box;
	padding-left: 15px;
	border-radius: 20px;
	border: 1px solid #fff;
	background-color: #f4f4f4;
	height: 30px;
	width: 230px;
}
/* 卡片区 */
#cards {
	margin-top: 25px;
}
#cards span {
	top: 12px;
	left: 12px;
	width: 60px;
	height: 24px;
	line-height: 24px;
	text-align: center;
	font-size: 12px;
	background-color: #e5f8ff;
	color: var(--themeColor);
}
#cards ul {
	display: flex;
	flex-wrap: wrap;
}
#cards li {
	display: flex;
	flex-direction: column;
	align-items: center;
	justify-content: center;
	width: 222px;
	height: 270px;
	border: 1px solid #666;
	margin-right: 16px;
	margin-bottom: 16px;
	overflow: hidden;
}
#cards li:hover {
	box-shadow: 1px 1px 10px 1px #78d6f9;
}
#cards li:hover a {
	transition: all 0.5s;
	bottom: 18px;
}
#cards li p:nth-child(2) {
	font-size: 12px;
	margin: 20px 0 15px 0;
}
#cards li p:nth-child(3) {
	font-size: 14px;
	/* color: green; */
}
#cards a {
	bottom: -32px;
	left: 13px;
	width: 196px;
	height: 30px;
	line-height: 30px;
	text-align: center;
	color: #fff;
	font-size: 12px;
	background-color: var(--themeColor);
}
/* 分页器 */
#pinstance {
	width: var(--totalWid);
	height: 130px;
}
#pinstance ul {
	display: flex;
	justify-content: center;
	box-sizing: border-box;
	padding-top: 60px;
}
#pinstance ul li {
	width: 25px;
	height: 25px;
	font-size: 12px;
	text-align: center;
	line-height: 25px;
	margin: 0 10px;
	cursor: pointer;
}
#pinstance ul li.active {
	color: #fff;
	background-color: var(--themeColor);
	border-radius: 50%;
}

/* 蒙层 */
#mask {
	position: fixed;
	left: 0;
	top: 0;
	z-index: 70;
	width: 100%;
	height: 100%;
	background-color: rgba(0, 0, 0, 30%);
	display: none;
}
/* 登录框 */
#mask #loginModal {
	box-sizing: border-box;
	padding: 20px;
	position: absolute;
	top: 50%;
	left: 50%;
	transform: translate(-50%, -50%);
	width: 400px;
	height: 550px;
	background-color: #fff;
}
/* logo */
#loginModalLogo {
	width: 185px;
	height: 50px;
	margin: 15px auto 40px;
	background: url(../imgs/loginlogo.png) no-repeat;
}
/* Tab区 */
#loginModalTab #login {
	text-align: center;
	height: 45px;
	line-height: 45px;
	margin-bottom: 25px;
}
#loginModalTab #login span {
	display: inline-block;
	width: 2px;
	height: 15px;
	background-color: #eeeeee;
}
#loginModalTab #login a {
	position: relative;
	display: inline-block;
	width: 125px;
	font-size: 16px;
	text-align: center;
}
#loginModalTab #login a.active {
	color: var(--themeColor);
}

/* 下划线 */
#loginModalTab #login a.active::after {
	content: "";
	display: block;
	width: 30%;
	height: 2px;
	background-color: var(--themeColor);
	position: absolute;
	bottom: 0;
	left: 50%;
	transform: translate(-50%);
}

/* 账号登录区 */
/* 用户名 */
#loginModalTab .text {
	position: relative;
	margin-bottom: 15px;
}
/* 精灵图 */
#loginModalTab .text span {
	position: absolute;
	bottom: 8px;
	left: -3px;
	display: inline-block;
	width: 30px;
	height: 30px;
	background-image: url(../imgs/loginIcon.png);
	background-position: 29px 1px;
}
#loginModalTab .password {
	position: relative;
}
#loginModalTab .password span {
	position: absolute;
	bottom: 8px;
	left: -3px;
	display: inline-block;
	width: 30px;
	height: 30px;
	background-image: url(../imgs/loginIcon.png);
	background-position: -22px 1px;
}
#loginModalTab .text input {
	box-sizing: border-box;
	padding-left: 35px;
	width: 100%;
	height: 40px;
	border: none;
	border-bottom: 1px solid #e7e7e7;
	font-size: 12px;
	outline: none;
}
/* 密码 */
#loginModalTab .password input {
	box-sizing: border-box;
	padding-left: 35px;
	width: 100%;
	height: 40px;
	border: none;
	border-bottom: 1px solid #e7e7e7;
	font-size: 12px;
	outline: none;
}
/* 忘记密码 */
#loginModalTab .forgetPassword {
	display: flex;
	flex-direction: row-reverse;
	margin: 20px 0;
}
#loginModalTab .forgetPassword a {
	font-size: 12px;
	color: var(--themeColor);
}
/* 登录 */
#loginModalTab .login button {
	width: 100%;
	height: 47px;
	background-color: var(--themeColor);
	text-align: center;
	line-height: 47px;
	color: #fff;
	margin-bottom: 20px;
}
/* 立即注册 */
#loginModalTab form .register {
	display: flex;
	justify-content: flex-end;
	font-size: 12px;
	color: #919191;
	margin-right: 35px;
}
#loginModalTab .register a {
	color: var(--themeColor);
}
/* 扫码登录Tab区 */
#sweepCode .qrCode {
	width: 290px;
	height: 245px;
	border: 1px solid #f5f5f5;
	background-color: #fcfcfc;
	text-align: center;
}
/* 二维码 */
#sweepCode {
	display: none;
}
#sweepCode .qrCode {
	margin: 0 auto;
}
#sweepCode .qrCode img {
	width: 100px;
	height: 100px;
	margin: 40px 0 20px 0;
}
#sweepCode .qrCode p {
	font-size: 14px;
	margin-top: 20px;
}
/* 立即注册 */
#sweepCode .register {
	margin-top: 20px;
	margin-left: 40px;
	font-size: 12px;
	color: #919191;
}
#sweepCode .register a {
	color: var(--themeColor);
}

/* 尾部 */
footer {
	width: var(--totalWid);
	height: 360px;
	/* background-color: pink; */
}
footer h3,
footer a,
footer p,
footer span {
	font-size: 12px;
}
/* 上边详情 */
footer .top {
	align-items: stretch;
}
footer .top h3 {
	margin-top: 45px;
	margin-bottom: 40px;
}
footer .top a {
	color: #c1c1c1;
	line-height: 30px;
}
footer .top ul:first-child {
	flex-grow: 1;
}
footer .top ul:nth-child(2) {
	flex-grow: 1;
}
footer .top ul:nth-child(3) {
	flex-grow: 1;
}
footer .top ul:nth-child(4) {
	flex-grow: 1;
}
footer .top ul:nth-child(5) {
	flex-grow: 2;
}
/* 微信公众号 */
footer .weChat {
	text-align: right;
}
footer .weChat p {
	color: #c1c1c1;
}
footer .weChat h2 {
	margin-top: 45px;
	margin-bottom: 15px;
}
footer .weChat img {
	margin-top: 35px;
	width: 100px;
	height: 100px;
}
/* 下边文字 */
footer .bottom span {
	color: #c1c1c1;
}
footer .bottom {
	display: flex;
	justify-content: space-between;
	margin-top: 48px;
}
footer .bottom img {
	vertical-align: middle;
}

/* 回到顶部按钮 */
span.iconfont {
	display: none;
	position: fixed;
	bottom: 100px;
	right: 20px;
	font-size: 40px;
	background-color: #c3c4c3;
	border-radius: 50px;
}
